package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 易损耗传感器对象 bus_sensor
 * 
 * @author asher
 * @date 2021-10-14
 */
public class BusSensor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 传感器主键id */
    private Long sensorId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 编号 */
    @Excel(name = "编号")
    private String code;

    /** 型号 */
    @Excel(name = "型号")
    private String modelNo;

    /** 参数 */
    @Excel(name = "参数")
    private String property;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String company;

    /** 总数量 */
    @Excel(name = "总数量")
    private Long totalQuantity;

    /** 剩余数量 */
    @Excel(name = "剩余数量")
    private String remainingQuantity;

    /** 总使用时长 */
    @Excel(name = "总使用时长")
    private Long usageTime;

    /** 使用次数 */
    @Excel(name = "使用次数")
    private String usageCount;

    /** 设备图片 */
    @Excel(name = "设备图片")
    private String pic;

    /** 启用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "启用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 采购人 */
    @Excel(name = "采购人")
    private String purchaser;

    /** 状态码 */
    @Excel(name = "状态码")
    private String status;

    public void setSensorId(Long sensorId) 
    {
        this.sensorId = sensorId;
    }

    public Long getSensorId() 
    {
        return sensorId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setModelNo(String modelNo) 
    {
        this.modelNo = modelNo;
    }

    public String getModelNo() 
    {
        return modelNo;
    }
    public void setProperty(String property) 
    {
        this.property = property;
    }

    public String getProperty() 
    {
        return property;
    }
    public void setCompany(String company) 
    {
        this.company = company;
    }

    public String getCompany() 
    {
        return company;
    }
    public void setTotalQuantity(Long totalQuantity) 
    {
        this.totalQuantity = totalQuantity;
    }

    public Long getTotalQuantity() 
    {
        return totalQuantity;
    }
    public void setRemainingQuantity(String remainingQuantity) 
    {
        this.remainingQuantity = remainingQuantity;
    }

    public String getRemainingQuantity() 
    {
        return remainingQuantity;
    }
    public void setUsageTime(Long usageTime) 
    {
        this.usageTime = usageTime;
    }

    public Long getUsageTime() 
    {
        return usageTime;
    }
    public void setUsageCount(String usageCount) 
    {
        this.usageCount = usageCount;
    }

    public String getUsageCount() 
    {
        return usageCount;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setPurchaser(String purchaser) 
    {
        this.purchaser = purchaser;
    }

    public String getPurchaser() 
    {
        return purchaser;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("sensorId", getSensorId())
            .append("name", getName())
            .append("code", getCode())
            .append("modelNo", getModelNo())
            .append("property", getProperty())
            .append("company", getCompany())
            .append("totalQuantity", getTotalQuantity())
            .append("remainingQuantity", getRemainingQuantity())
            .append("usageTime", getUsageTime())
            .append("usageCount", getUsageCount())
            .append("pic", getPic())
            .append("startTime", getStartTime())
            .append("purchaser", getPurchaser())
            .append("status", getStatus())
            .toString();
    }
}
